package com.config1.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@RefreshScope
public class MyConfig {
    @Value("${com.test}")
    private String test;

    @Bean
    public ConfigPro getConfigPro(){
        ConfigPro configPro = new ConfigPro();
        configPro.setTest(test);
        return  configPro;
    }
}
